package com.rainng.coursesystem.manager.leader;

import com.rainng.coursesystem.dao.LeaderDAO;
import com.rainng.coursesystem.manager.BaseManager;
import com.rainng.coursesystem.model.vo.response.table.LeaderEventItemVO;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("leader_EventManager")
public class EventManager extends BaseManager {
    private final LeaderDAO leaderDAO;

    public EventManager(LeaderDAO leaderDAO) {
        this.leaderDAO = leaderDAO;
    }

    public List<LeaderEventItemVO> listLeaderEvent(Integer leaderId) {
        return leaderDAO.listLeaderEvent(leaderId);
    }
}
